package com.personal.kousuan.util;

import java.util.Random;

public class RandomUtil {
	public static int generateRandom(int min,int max){
		if(max == 0){
			 return 0;
		 }
		if(min >= max){
			return max;
		}
		Random random = new Random();
        int s = random.nextInt(max)%(max-min+1) + min;
        return s;
	}

}
